package com.api;

import com.api.Fallback.CartClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author: LiuLi
 * @Date: 2025/09/04 10:46
 * @Description:
 */
@FeignClient(name = "cart-service", fallbackFactory = CartClientFallback.class)
public interface CartClient {

    /**
     * 批量删除购物车中商品
     *
     * @param ids 购物车条目id集合
     */
    @DeleteMapping("/carts")
    void deleteCartItemByIds(@RequestParam("ids") List<Long> ids);
}
